package blog.entity;

import lombok.Data;

@Data
public class BatchResult {
    private Integer success;
    private Integer fail;
    private String failMsg;

    public static BatchResult  SET(Integer success, Integer fail){
        return new BatchResult().setSuccess(success).setFail(fail);
    }
    public static BatchResult SET(Integer success, Integer fail, String failMsg){
        return new BatchResult().setSuccess(success).setFail(fail).setFailMsg(failMsg);
    }

}
